package com.miku.blog.controller;

import com.miku.blog.annotation.SystemLog;
import com.miku.blog.domain.pojo.ResponseResult;
import com.miku.blog.service.WebSiteConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shkstart
 * @create ${}YEAR-06-08 4:56
 */
@Api(tags = "Blog[博客信息]")
@RestController
public class WebSiteConfigController {

    @Autowired
    private WebSiteConfigService webSiteConfigService;

    @SystemLog(notes = "获取博客网站相关信息")
    @ApiOperation(value = "获取博客网站相关信息接口",notes = "获取网站详情{配置信息 ，页面信息，网站资源...}")
    @GetMapping("/")
    public ResponseResult getWebSiteConfigInfo()
    {
        return webSiteConfigService.getWebSiteConfigInfo();
    }


}
